package partial;

public class StivaA {

    NodA id[] = new NodA[100];
    int idx = 0;

    public void push(NodA x) {
        id[idx] = x;
        idx++;
    }

    public NodA pop() {
        NodA v = id[idx - 1];
        idx--;
        return v;
    }

    public boolean isEmpty() {
        if (idx == 0) {
            return true;
        } else {
            return false;
        }
    }

}
